package com.hdy.controller;


import com.hdy.pojo.User;
import com.hdy.service.UserService;
import com.hdy.service.impl.UserServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 大大怪将军
 * @since 2022-08-07
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    UserService userService;
    @RequestMapping(value = "/helloWord")
    public String helloWord(){
        return "胡单益世界第一帅";
    }

    @RequestMapping("/value")
    public User test(){
        return userService.test();
    }

}

